<style>
.h44{
	height:44px;
}
</style>
<div class="bar bar-header">
	<button class="button button-clear" id="goIndex">
		<i class="icon ion-ios-arrow-back active"></i>
		<span class="active">听单</span>
	</button>
	<h2 class="title"></h2>
	<button class="button button-clear" id="qrcode">
		<span class="active">验单</span>
	</button>
</div>
<div class="page">
	<div class="h44"></div>
	<div class="hd">
		<div class="list">
			<a class="item item-avatar item-icon-right" href="{php echo $this->createMobileUrl('v')}">
				<img src="{$member['avatar']}" alt="{$member['nickname']}" />
				<h2 class="title">{$member['nickname']}</h2>
				<p>电话：{if !empty($member['mobile'])}{$member['mobile']}{else}未填写{/if}</p>
				<i class="icon ion-ios-arrow-right"></i>
			</a>
		</div>
		<div class="list">
			<a class="item item-icon-left item-icon-right" data-pjax href="{php echo $this->createMobileUrl('runner_xinyu')}">
				<i class="icon ion-ios-flame-outline"></i>
				<h2 class="title">信誉充值</h2>
				<i class="icon ion-ios-arrow-right"></i>
			</a>
		</div>
		<div class="list">
			<a class="item item-icon-left item-icon-right" data-pjax href="{php echo $this->createMobileUrl('runner_order')}">
				<i class="icon ion-ios-paper-outline"></i>
				<h2 class="title">接单记录</h2>
				<i class="icon ion-ios-arrow-right"></i>
			</a>
			<a class="item item-icon-left item-icon-right" data-pjax href="{php echo $this->createMobileUrl('runner_listen')}">
				<i class="icon ion-ios-paw-outline"></i>
				<h2 class="title">听单记录</h2>
				<i class="icon ion-ios-arrow-right"></i>
			</a>
			<a class="item item-icon-left item-icon-right" data-pjax href="{php echo $this->createMobileUrl('runner_money')}">
				<i class="icon ion-ios-pie-outline"></i>
				<h2 class="title">赏金记录</h2>
				<i class="icon ion-ios-arrow-right"></i>
			</a>
		</div>
	</div>
</div>
<script>
require(['jquery','weixin','core'],function($,wx,core){
	$('#footer').show();
	clearTimeout(timer);
	wx.config(jssdkconfig);
	
	$('#qrcode').click(function(){
		wx.ready(function(){
			wx.scanQRCode({
				needResult: 1,
				scanType: ["qrCode","barCode"],
				success: function (res) {
					var result = res.resultStr;
					core.post('scanresult',{result:result},function(data){
						if(data.status == 1){
							core.ok(data.message,function(){
								
							});
						}else{
							core.cancel(data.message,function(){
								
							});
						}
					});
				}
			});
		});
	});
	$('#goIndex').click(function(){
		$.pjax({
			url:"{php echo $this->createMobileUrl('index')}",
			container:"#pjax-container"
		});
	});
});
</script>
{template 'default/common/share'}